﻿<UserControl x:Class="Chapters.Chapter13.GrayscaleEffect_Tester"
						 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
						 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
						 xmlns:Chapter13="clr-namespace:FSharp.Chapter13;assembly=FSharpLibrary">
	<DockPanel>
		<UniformGrid DockPanel.Dock="Top"
								 Rows="1">
			<TextBlock TextAlignment="Center">Original</TextBlock>
			<TextBlock TextAlignment="Center">Applying Effect</TextBlock>
		</UniformGrid>

		<UniformGrid Rows="1">
			<Image Source="/Resources;component/Shared/toucan.jpg"
						 Stretch="Fill" 
                   Margin="10"/>

			<Image Source="/Resources;component/Shared/toucan.jpg"
						 Stretch="Fill"
                   Margin="10">
				<Image.Effect>
					<Chapter13:GrayscaleEffect />
				</Image.Effect>
			</Image>
		</UniformGrid>
	</DockPanel>
</UserControl>
